HTML DOM
HTMLElement Object
What links here?
HTML DOM Element properties
PropertyDescriptionW3C
accessKey Sets or returns an accesskey for an element R/W YES
attributes[] Returns an array (NamedNodeMap) containing all the attributes defined for the element in question, including custom attributes. IE6 returns not just attributes explicitly defined by the webmaster, but those of the element's internal DTD as well. In Firefox, attributes[] work more as expected, returning only user defined attributes, and even reflect changes done by scripting to an attribute.

Each attribute[] element returned supports a name and value property to retrieve additional information about the attribute.
Yes
childNodes[] Returns an array of all of the child nodes of an element as objects. Use the properties "nodeName" and "nodeType" to retrieve additional information about a node. Yes
className Sets or returns the CSS class attribute of an element. R/W Yes
clientWidth A cross browser (NS7+, IE4+) property that returns the viewable width of the content on the page, not including borders, margins, or scrollbars (overflowing content). RO No
clientHeight A cross browser (NS7+, IE4+) property that returns the viewable height of the content on the page, not including borders, margins, or scrollbars (overflowing content). RO No
dir Sets or returns the text direction of the element. Valid values are "ltr" (left to right) and "rtl" (right to left). Default is "ltr." R/W Yes
firstChild Returns a reference to the first child of an element.
id Sets or returns the id of an element R/W Yes
innerHTML Sets or returns the HTML contents (+text) of an element R/W Yes
lang specifies the language of an element's attribute values and text content. Commonly invoked on the body level to determine the base language of the document. R/W Yes
lastChild Returns a reference to the last child of an element.
localName Returns the name of the node of an XML element. Equivilant to the nodeName property for regular HTML elements.
namespaceURI Returns the URI string assigned to the xmlns attribute of an XML element.
nextSibling Returns the next node following the current one. Returns null if there are none or for text nodes inside an element.
nodeName Returns a string indicating the name of the node, in the case of elements, its tag name. Returned value is in uppercase.
nodeType Returns an integer indicating the type of a node.
nodeValue reflects the value of a node. For text nodes, the content of the node is returned, while for attribute nodes, the attribute value. Null is returned for Document and element nodes. Use this property to alter the contents of a text or attribute node. R/W
offsetLeft Gets the horizontal offset position of the current element relative to its offset container. Use "offsetParent" to determine what an element's container is. Typically a positioned DIV or TABLE will act as an offset container to any element contained inside them. RO No
offsetTop Gets the vertical offset position of the current element relative to its offset container. Use "offsetParent" to determine what an element's container is. RO No
offsetParent Returns the offset container of the current element. For most elements on the page, the "BODY" is their offset container. However, a positioned DIV for example creates its own offset container space. RO No
offsetWidth A cross browser (non W3C DOM) property that returns the width of the element, including borders and padding if any, but not margins. In IE6, if a valid doctype is not specified, margins/padding are NOT included in the returned value. RO No
offsetHeight A cross browser (non W3C DOM) property that returns the height of the element, including borders and padding if any, but not margins. In IE6, if a valid doctype is not specified, margins/padding are NOT included in the returned value.
ownerDocument Returns the document object that contains the current node.
parentNode References the node that is the parent of the current one in the document tree.
prefix Returns the namespace prefix of the current XML node, or null if not available.
previousSibling Returns the previous node relative the current one in the document tree. Returns null if there are none or for text nodes inside an element.
scrollHeight A cross browser (NS7+, IE4+) property that returns the entire height of an element, including any area that may be hidden due to scrollbars. When the element does not contain vertical scrollbars, its scrollHeight is equal to its clientHeight. RO No
scrollLeft A cross browser (NS7+, IE4+) property that returns the distance between the actual left edge of the element and its left edge currently in view. In a horizontally scrollable DIV for example, as you drag the scrollbar to the right, the DIV's scrollLeft property increases as the distance between its actual left edge and visible left edge increases. Applicable to scrollable elements, such as a DIV with scrollbars, a textarea, the BODY etc. RO No
scrollTop A cross browser (NS7+, IE4+) property that returns the distance between the actual top edge of the element and its top edge currently in view. Most commonly invoked on the BODY element for the purpose of positioning an element on the page so it's always visible. RO No
scrollWidth A cross browser (NS7+, IE4+) property that returns the entire width of an element, including any area that may be hidden due to scrollbars. When the element does not contain horizontal scrollbars, its scrollWidth is equal to its clientWidth. RO No
style Sets or returns the style attribute of an element R/W Yes
tabIndex Sets or returns the tab order of an element R/W Yes
tagName Returns the name of the tag of an element as a string and in uppercase.
title returns the title of the document or "title" attribute of an element when invoked on an element. R/W Yes


DOM Element properties
PropertyDescriptionW3C
toString()Converts an element to a string Yes
programming - javascript - HTML DOM HTMLElement Object
filename:programming - javascript - HTML DOM HTMLElement Object
filename:programming%20%2D%20javascript%20%2D%20HTML%20DOM%20HTMLElement%20Object
last edit:August 24 2014 21:51:14 (3542 days ago)
ct = 1714982936.000000 = May 06 2024 04:08:56
ft = 1408931474.000000 = August 24 2014 21:51:14
dt = 306051462.000000